package com.nado.extensions.util;

public class SimpleXMLParser extends XMLParser<SimpleXMLParser.StringElement> {

	protected StringElement newElement(String tagName) {
		return new StringElement(tagName, Element.DEFAULT_DELIMITER);
	}

	public static class StringElement extends Element<String> implements XMLElement<StringElement> {

		public StringElement(String name, char delimiter) {
			super(name, delimiter);
		}

		public void append(String name, StringElement element) {
			super.addChild(name, element);
		}
	}
}
